﻿// <copyright file="DectectionResult.cs" company="Barry Dorrans">
// Copyright (c) 2008 All Right Reserved, Barry Dorrans
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Barry Dorrans</author>
// <email>barryd@idunno.org</email>
// <date>2008-12-03</date>
// <summary>An enumeration for the different results to take when an error is discovered.</summary>

namespace Idunno.AntiCsrf.Configuration
{
    /// <summary>
    /// An enumeration for the different results to take when an error is discovered.
    /// </summary>
    public enum DetectionResult
    {
        /// <summary>
        /// Raise an exception on a potential CSRF problem
        /// </summary>
        RaiseException = 0,

        /// <summary>
        /// Redirect to an error page specified in the configuration settings on a potential CSRF problem.
        /// </summary>
        Redirect = 1
    }
}
